Socket
Socket
Sign inDemoInstall

@cspotcode/source-map-support

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cspotcode/source-map-support

Fixes stack traces for files with source maps


Version published
Weekly downloads
10M
decreased by-38.47%
Maintainers
1
Weekly downloads
 
Created

What is @cspotcode/source-map-support?

The @cspotcode/source-map-support package is a library that provides source map support for stack traces in node.js. This means it can translate stack traces generated by your transpiled or minified code back to the original source code, making debugging much easier. It's especially useful when working with TypeScript, Babel, or other JavaScript transpilers.

What are @cspotcode/source-map-support's main functionalities?

Source Map Support for Stack Traces

By installing source-map-support, any stack trace generated by throwing an error will be mapped back to the original source code if a source map is available. This makes it easier to debug applications that use transpiled code.

require('@cspotcode/source-map-support').install();
throw new Error('This is a test error.');

Other packages similar to @cspotcode/source-map-support

FAQs

Package last updated on 02 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc